<?php

class Page extends MY_Controller {

	function Page()
	{
		parent::MY_Controller();
		$this->load->model('Page_model');
	}
	
	function detailPage($id)
	{	
		// Set meta
		$title = $this->data['site']['site_title'];
		$data['web_title'] = $title;
		$data['meta_title'] = $title;
		$data['meta_description'] = purify($this->data['site']['site_description']);
		$data['meta_keyword'] = $this->data['site']['site_keyword'];
		
		 // Get Page
		$data['row_page'] = $this->Page_model->get_row('*','id',$id)->row_array();
		
		
		// Send and Load page
		$data['page'] = 'page_view';
		$this->load->vars($data);
		$this->load->view('template_view');	
	}
}	

/* End of file home.php */
/* Location: ./application/controllers/home.php */
?>